'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
	// 信息查询
	async getData(){
		const { ctx, app } = this;
		
		// 查询数据总记录数
		const resultsCount = await app.mysql.query('SELECT * FROM Sheyinshi');
		
		return ctx.apiSuccess(resultsCount);
	}
}

module.exports = HomeController;
